package com.stark.wechat.job;

import java.io.IOException;

import org.springframework.stereotype.Service;

import com.stark.wechat.util.FileUtil;
import com.stark.wechat.util.SysTools;

/**
 * 清理临时目录作业。
 * @author Ben
 * @since 1.0.0
 * @version 1.0.1, 2017/9/22
 */
@Service("clearTmpDirJob")
public class ClearTmpDirJob {
	public void execute() throws IOException {
		// 清空目录："/tmp/"
		FileUtil.deleteDirectory(SysTools.getAppRealPath() + "tmp");
	}
}
